<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<link rel="stylesheet" href="../../../layui-v2.2.5/layui/css/layui.css" media="all">
<script src="../../../layui-v2.2.5/layui/layui.js" charset="utf-8"></script>
<%--手机号码验证--%>
<script type="text/javascript">
    function text() {
        var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
          if(!myreg.test($("#phone").val())){
            alert('请输入有效的手机号码！');
            return false;
          }
    }
</script>


<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
        try {
            ace.settings.check('breadcrumbs', 'fixed')
        } catch (e) {
        }
    </script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="../../../index.jsp">首页</a>
        </li>

        <li>
            填写信息
        </li>

    </ul><!-- .breadcrumb -->
</div>

<div class="page-content">
    <div class="page-header">
        <h1>
            填写信息
        </h1>
    </div><!-- /.page-header -->

    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->

            <form class="form-horizontal" action="insertFile" method="post"  >
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"> 合同名称： </label>

                    <div class="col-sm-9">
                        <input type="text" name="file_name" required  style="height: 38px; "  class="col-xs-10 col-sm-5" />
                            <div style="margin-top: 1%;">
                                <span  style="font-size: 15px;"><i class="icon-warning-sign red bigger-130"></i>*（必填项!）</span>
                            </div>
                    </div>
                </div>

                <div class="space-4"></div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"> 甲方： </label>

                    <div class="col-sm-9">
                        <input type="text" style="height: 38px; "  required   name="file_enterprise"  class="col-xs-10 col-sm-5"/>
                            <div style="margin-top: 1%;">
                                <span  style="font-size: 15px;"><i class="icon-warning-sign red bigger-130"></i>*（必填项!）</span>
                            </div>
                    </div>
                </div>

                <div class="space-4"></div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"> 乙方： </label>

                    <div class="col-sm-9">
                        <input type="text" style="height: 38px; "  required   name="file_Y"  class="col-xs-10 col-sm-5"/>
                            <div style="margin-top: 1%;">
                                <span  style="font-size: 15px;"><i class="icon-warning-sign red bigger-130"></i>*（必填项!）</span>
                            </div>
                    </div>
                </div>

                <div class="space-4"></div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"> 签约日期：</label>
                    <div class="col-sm-9">
                        <div class="layui-input-inline">
                            <input type="text" name="date" id="date" required lay-verify="date" placeholder="  年-月-日" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="space-4"></div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"> 联系电话： </label>
                        <div class="col-sm-9">
                            <input type="text" style="height: 38px; "  name="file_phone"  class="col-xs-10 col-sm-5" maxlength="11"/>
                        </div>
                </div>

                <div class="space-4"></div>

                <div>
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" type="submit" >
                            <i class="icon-ok bigger-110"></i>
                            保存
                        </button>

                        &nbsp; &nbsp; &nbsp;
                        <button class="btn btn-info" type="reset">
                            <i class="icon-undo bigger-110"></i>
                            重写
                        </button>
                    </div>
                </div>

            </form>

            <div class="hr hr-18 dotted hr-double"></div>


        </div><!-- /.col -->
    </div><!-- /.row -->
</div>

<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate;

        //日期
        laydate.render({
            elem: '#date'
        });
        laydate.render({
            elem: '#date1'
        });


        //监听提交
        form.on('submit(demo1)', function(data){
            layer.alert(JSON.stringify(data.field), {
                title: '最终的提交信息'
            })
            return false;
        });


    });
</script>

